package com.element.oauth2.utils;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class OAuth2Util {

    public static Set<String> parseParameterList(String values) {
        Set<String> result = new HashSet<>();
        if (values != null && !values.trim().isEmpty()) {
            String[] tokens = values.split("[\\s+]");
            result.addAll(Arrays.asList(tokens));
        }
        return result;
    }


}